package com.example.demo.one2many;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class One2ManyQueueConfig {

    public static final String queueName = "One->Many";

    @Bean
    public Queue one2many() {
        return new Queue(One2ManyQueueConfig.queueName);
    }
}
